#!/bin/bash
echo "----> SenseAge数据服务压力测试"
api="http://127.0.0.1:10001/delivery_p"
req_json='{"name":"","complete_day":16}'
#req_json='{"name":"张特","complete_day": "10"}'
delay=0
req_time=1
c_mount=2
tool=siege
echo "----> 测试接口: "$api
echo "----> 最大请求并发数: "$c_mount"  单进程请求次数: "$req_time
echo "----> 请求数据"$req_json
echo "----> 测试工具: "$tool
echo "----> 开始测试 ..."
$tool -d 0 -r $req_time -c $c_mount  -H 'Content-Type:application/json' $api' POST '$req_json 
